#pragma once
#include "expression.h"

namespace krryn{
namespace animation{
	class expression_tree;

	class expression_transition : public expression{
	public:
		expression_transition(expression_tree *a_Tree);

		float get_duration() const { return m_Duration; }
		void set_duration(float a_Duration) { m_Duration = a_Duration; }

		virtual void blend(float a_DT, skeleton *a_Result);
	private:
		expression_tree *m_Tree;

		float m_CurrentTime;
		float m_Duration;
	};

}
}